package com.lee9213.demo.biz.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lee9213.demo.biz.IDemoBiz;
import com.lee9213.demo.dao.IDemoDao;
import com.lee9213.demo.entity.DemoEntity;

/**
 * @author libo
 * @version 1.0
 * @date 2017/11/24 11:23
 */
@Service
public class DemoBizImpl implements IDemoBiz {

    @Autowired
    private IDemoDao demoDao;


    @Override
    public Integer update(DemoEntity userEntity) {
        return demoDao.update(userEntity);
    }


    @Override
    public Long save(DemoEntity entity) {
        return demoDao.save(entity);
    }
}
